package oa.dao;

import java.util.List;

import oa.entity.Application;
import oa.exception.DaoException;

public interface ApplicationDao {
	boolean addApplication(Application application) throws DaoException;
	List<Application> selectAllApplication() throws DaoException;
	List<Application> selectApplication(int id,String type,int status) throws DaoException;
	List<Application> selectApplicationusercompany(int userid,Integer pageNo, Integer row)throws DaoException;
	List<Application> selectApplications(String status,int companyid,Integer pageNo, Integer row) throws DaoException;
	boolean deleteApplication(int id) throws DaoException;
	boolean upadteApplication(Application application) throws DaoException;
	int  appcount(String status,int companyid,int userid)throws DaoException;
}
